Skip to main content

TransformOperationRotate

Type

statement

Summary

Apply a rotation to a transform.

Syntax

rotate <mTransform> by <mRotation>

Description

Apply a rotation by mRotation degrees to mTransform. This is equivalent to concatenating mTransform with a new rotation transform.

Parameters

NameTypeDescription

mTransform

An expression which evaluates to a transform.

mRotation

An expression which evaluates to a number of degrees.

Examples

// Create a new transform
variable tTransform
put the identity transform into tTransform

// Rotate the transform by 90 degrees
rotate tTransform by 90
Thank you for your feedback!

Was this page helpful?